package com.senditcertified.mail.widget.dialog;

import com.senditcertified.mail.R;

import android.app.Dialog;
import android.content.Context;
import android.graphics.Color;
import android.os.Bundle;
import android.view.View;
import android.view.Window;

public class UploadDialog extends Dialog {
	View.OnClickListener onBrowserClick;

	public UploadDialog(Context context, View.OnClickListener onBrowserClick) {
		super(context);
		this.onBrowserClick = onBrowserClick;
	}

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		requestWindowFeature(Window.FEATURE_NO_TITLE);
		setContentView(R.layout.dialog_upload);
		initComponents();
		addListeners();
	}

	private void initComponents() {
		getWindow().getDecorView().setBackgroundColor(Color.TRANSPARENT);

	}

	private void addListeners() {
		findViewById(R.id.btn_browser).setOnClickListener(onBrowserClick);
	}

}
